package com.witte.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.witte.entity.Chance;
import com.witte.entity.Service;

@Mapper
public interface ChanceMapper {
    int deleteByPrimaryKey(Integer chanceno);

    int insert(Chance record);

    int insertSelective(Chance record);

    Chance selectByPrimaryKey(Integer chanceno);

    int updateByPrimaryKeySelective(Chance record);

    int updateByPrimaryKey(Chance record);
    
    List<Chance> selectAll();
    
    List<Chance> selectKey();
    
    List<Service> selectByState(@Param("beginPage") Integer beginPage,@Param("pageSize") Integer pageSize);

    int getRecodeCount();
    
    
}